package model.contrainte;

import java.util.List;

public class CreateurContrainteDiplome implements CreateurContrainte{

	public Contrainte creerContrainte(Object[] contenu) {
		List<TypeDiplome> diplomes = (List<TypeDiplome>) contenu[0];
		return new ContrainteDiplome(diplomes);
	}

	public TypeContrainte getTypeContrainte() {
		return TypeContrainte.DIPLOME;
	}

}
